generate.py source